$.getScript('https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js');
$(function () {
    $('#BootstrapModal').appendTo('body');
});